/**
 * Sample React Native App
 * https://github.com/facebook/react-native
 * @flow
 */
import React, {Component} from 'react'
import {AppRegistry,Text} from 'react-native';
import App from './app'

const url = 'http://192.168.31.182:8069/spiderapi/new_pic'

const jsonFetch = async (url) => {
  let resp = await fetch(url)
  let data = await resp.json()
  console.log(data)
}

const TestApp = () => {
  jsonFetch(url)
  return (<Text>123</Text>)
}

AppRegistry.registerComponent('SpiderApp', () => App);
